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

Init vue #50

Merged
merged 68 commits into from
Oct 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
4164f1a
Init Vue3 front
BinaryBrain May 1, 2022
0ab8082
Vue App WIP
BinaryBrain May 1, 2022
5fee247
Fix base CSS
BinaryBrain May 1, 2022
11f683e
Fix Lamp CSS
BinaryBrain May 1, 2022
5ee48ef
Add How To page
BinaryBrain May 1, 2022
31be643
More vue pages, more CSS
BinaryBrain May 1, 2022
8e44eb6
Fix footer
BinaryBrain May 1, 2022
2a6b156
Make build pass
BinaryBrain May 4, 2022
8d5c5a4
Ignore client in orbital build
BinaryBrain May 4, 2022
ad2cd50
Lamp page seems to be working as before
BinaryBrain May 4, 2022
af0f159
Adding .nvmrc
Protectator May 6, 2022
897cbad
build to old static folder so we don't have to change the server
BinaryBrain May 6, 2022
282372f
base url WIP
BinaryBrain May 6, 2022
4dcb138
Send Lamp request to backend in dev mode
BinaryBrain May 7, 2022
3918e6a
Fix static folder path for production
BinaryBrain May 7, 2022
817fa56
Fix favicons and some routes, /lamp still buggy
BinaryBrain May 7, 2022
91ae996
Fix /lamp route
BinaryBrain May 7, 2022
6537969
Convert vue to Composition API
BinaryBrain Aug 20, 2022
1f747a2
Remove background for the moment
BinaryBrain Aug 20, 2022
12da369
Websockets working on Chrome but not FF
BinaryBrain Aug 21, 2022
beb2e38
Add subscription system to WebSocket messages, implement Wait and Get…
BinaryBrain Aug 21, 2022
4468740
Refactor Play view with states componants
BinaryBrain Aug 22, 2022
68deb18
Fix bug where character was not defined
BinaryBrain Aug 22, 2022
995bc55
Add controls with keyboard bindings
BinaryBrain Aug 22, 2022
03fd90e
add unsubscribe at unmount
BinaryBrain Aug 23, 2022
9b12909
Reset ws subscriptions on disconnect
BinaryBrain Aug 23, 2022
f1c9919
Add Game In Progress page, remove done stuff from script.js
BinaryBrain Aug 23, 2022
d8c2d01
Fix backend to serve built client static files
BinaryBrain Aug 23, 2022
82697ea
Fix ws.connect promise
BinaryBrain Aug 23, 2022
1b87540
Add red square effet component
BinaryBrain Aug 26, 2022
c504951
Merge branch 'master' into init-vue
BinaryBrain Aug 30, 2022
e02b39d
Init sound system
BinaryBrain Aug 30, 2022
f507102
Fix audio files path
BinaryBrain Aug 30, 2022
fe53772
Add all sounds but buttons
BinaryBrain Aug 30, 2022
7c8d7e1
Add DynamicButton
BinaryBrain Sep 1, 2022
110b298
Improve Dynamic Button Componant
BinaryBrain Sep 1, 2022
b5fb7e5
Fix single-word componants
BinaryBrain Sep 1, 2022
51b3e70
Add Primary/Simple variants to buttons
BinaryBrain Sep 1, 2022
d7ffd1d
New style for home page, improve dynamic buttons, a lot of cleanup
BinaryBrain Sep 2, 2022
fe44da2
Starting proposition of Settings page
Protectator Sep 2, 2022
53e7b65
Reading settings correctly
Sep 3, 2022
4acd89f
Adding a TODO
Sep 3, 2022
93cf364
Add spectate mode, change server to send winner colors to spectators
BinaryBrain Sep 4, 2022
a92394b
Fix Controls style
BinaryBrain Sep 5, 2022
3759a1e
Merge branch 'init-vue' into vue-settings
Sep 6, 2022
db7e55c
Improve style on simple pages
BinaryBrain Sep 6, 2022
2c8da26
Sending data to WS on settings Save button
Sep 7, 2022
cc5be4d
Fix typo in filename
BinaryBrain Oct 7, 2022
933bdbe
Setting options works
Protectator Oct 19, 2022
ade8d66
Add GET options endpoint
BinaryBrain Oct 19, 2022
69d8dc9
Removing console.log
Protectator Oct 22, 2022
9161b70
Merge pull request #58 from Pecamo/vue-settings
Protectator Oct 22, 2022
b983316
Refactor options WIP
BinaryBrain Oct 22, 2022
684ab8f
Merge branch 'init-vue' of github.com:Pecamo/orbital into init-vue
BinaryBrain Oct 22, 2022
bb3c5f0
Fixing memory leak
Oct 22, 2022
3099ec0
Better settings vue
Oct 23, 2022
4c40425
Adapting Settings page size
Oct 23, 2022
ba0c468
Add Smart Colors, Handle Lamp form with Vue
BinaryBrain Oct 24, 2022
8f68381
Fix animations, remove Studio mode, automate animation fetch
BinaryBrain Oct 24, 2022
9a23cc4
Add Gradient and Rainbow SmartColors
BinaryBrain Oct 25, 2022
21e562f
Add Brigthness slider for Lamp mode, Fix top led
BinaryBrain Oct 26, 2022
ae41ba1
Perform npm audit fix
BinaryBrain Oct 26, 2022
042f192
Merge pull request #60 from Pecamo/feature/brightness-handler
BinaryBrain Oct 26, 2022
718de62
Merge pull request #61 from Pecamo/chore/sec-update
BinaryBrain Oct 26, 2022
c4012df
Minor refactor
BinaryBrain Oct 26, 2022
62914a9
Lamp Vue Style WIP
BinaryBrain Oct 26, 2022
932321e
Improve Smart Color Picker
BinaryBrain Oct 26, 2022
1486759
Merge pull request #62 from Pecamo/lamp-style-vue
Protectator Oct 27, 2022
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@ fabric.properties

node_modules
dist
static
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Orbital](./static/logo/logo-github.png)
![Orbital](./client/src/assets/logo/logo-github.png)

Orbital is a game designed to be played on addressable LED strips, on any one dimensional array of lights.

Expand Down
1 change: 1 addition & 0 deletions client/.env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_ORBITAL_SERVER_BASE_URL=http://localhost:3000
1 change: 1 addition & 0 deletions client/.env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_ORBITAL_SERVER_BASE_URL=http://localhost:3000
15 changes: 15 additions & 0 deletions client/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* eslint-env node */
require("@rushstack/eslint-patch/modern-module-resolution");

module.exports = {
root: true,
extends: [
"plugin:vue/vue3-essential",
"eslint:recommended",
"@vue/eslint-config-typescript/recommended",
"@vue/eslint-config-prettier",
],
env: {
"vue/setup-compiler-macros": true,
},
};
28 changes: 28 additions & 0 deletions client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
1 change: 1 addition & 0 deletions client/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.1.0
3 changes: 3 additions & 0 deletions client/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["johnsoncodehk.volar", "johnsoncodehk.vscode-typescript-vue-plugin"]
}
46 changes: 46 additions & 0 deletions client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# client

This template should help get you started developing with Vue 3 in Vite.

## Recommended IDE Setup

[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.vscode-typescript-vue-plugin).

## Type Support for `.vue` Imports in TS

TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:

1. Disable the built-in TypeScript Extension
1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.

## Customize configuration

See [Vite Configuration Reference](https://vitejs.dev/config/).

## Project Setup

```sh
npm install
```

### Compile and Hot-Reload for Development

```sh
npm run dev
```

### Type-Check, Compile and Minify for Production

```sh
npm run build
```

### Lint with [ESLint](https://eslint.org/)

```sh
npm run lint
```
1 change: 1 addition & 0 deletions client/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
19 changes: 19 additions & 0 deletions client/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0'/>
<link rel="apple-touch-icon" sizes="180x180" href="/public/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/public/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/public/favicon-16x16.png">
<link rel="manifest" href="/public/site.webmanifest">
<link rel="mask-icon" href="/public/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#603cba">
<meta name="theme-color" content="#777777">
<title>Orbital</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading