Skip to content

Commit cedd5c4

Browse files
authored
Merge pull request #31 from PiterWeb/main
Bug fixed showing confirm on options navigation always
2 parents ae53d19 + 5c3ad16 commit cedd5c4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+3111
-239
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ There is no way to self-host the infrastructure of RemoteController because it h
6565

6666
- If you want to self-host a TURN/STUN server you can [try Coturn](https://github.com/coturn/coturn). (This is only an example, you can choose other STUN/TURN implementations)
6767

68+
- Also you can host the Web version (but it is only frontend) to make like a network of Remote Controller web clients
69+
6870
## Build
6971

7072
### Prerequisites

Taskfile.yml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,41 @@ tasks:
44
build:
55
cmds:
66
- wails build -platform=windows/amd64,windows/arm64,linux/amd64,linux/arm64
7-
7+
desc: Build the application for all platforms
8+
build-win:
9+
cmds:
10+
- wails build -platform=windows/amd64,windows/arm64
11+
desc: Build the application for Windows
12+
build-linux:
13+
cmds:
14+
- wails build -platform=linux/amd64,linux/arm64
15+
desc: Build the application for Linux
16+
build-wasm-front-linux:
17+
cmds:
18+
- cd frontend
19+
- cd static
20+
- cd wasm
21+
- GOOS=js GOARCH=wasm go build -o signal.wasm
22+
desc: Build the frontend wasm for Linux
23+
build-wasm-front-win:
24+
cmds:
25+
- cd frontend
26+
- cd static
27+
- cd wasm
28+
- powershell.exe -Command { $env:GOOS="js";$env:GOARCH="wasm"; go build -o signal.wasm }
29+
desc: Build the frontend wasm for Windows
830
dev-all:
931
cmds:
1032
- wails dev
33+
desc: Run the application in development mode
1134

1235
dev-front:
1336
cmds:
1437
- cd frontend
15-
- pnpm run dev
38+
- pnpm run dev
39+
desc: Run the frontend in development mode
40+
test:
41+
cmds:
42+
- cd frontend
43+
- pnpm run test
44+
desc: Run the frontend tests

docs/SEO.xlsx

9.06 KB
Binary file not shown.

frontend/cypress.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* eslint-disable @typescript-eslint/no-unused-vars */
2+
import { defineConfig } from "cypress";
3+
4+
export default defineConfig({
5+
e2e: {
6+
experimentalStudio: true,
7+
setupNodeEvents(on, config) {
8+
9+
// implement node event listeners here
10+
},
11+
},
12+
});
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
describe('template spec', () => {
2+
it('passes', () => {
3+
cy.visit('http://localhost:5173/')
4+
})
5+
})
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "Using fixtures to represent data",
3+
"email": "hello@cypress.io",
4+
"body": "Fixtures are a great way to mock data for responses to routes"
5+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/// <reference types="cypress" />
2+
// ***********************************************
3+
// This example commands.ts shows you how to
4+
// create various custom commands and overwrite
5+
// existing commands.
6+
//
7+
// For more comprehensive examples of custom
8+
// commands please read more here:
9+
// https://on.cypress.io/custom-commands
10+
// ***********************************************
11+
//
12+
//
13+
// -- This is a parent command --
14+
// Cypress.Commands.add('login', (email, password) => { ... })
15+
//
16+
//
17+
// -- This is a child command --
18+
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
19+
//
20+
//
21+
// -- This is a dual command --
22+
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
23+
//
24+
//
25+
// -- This will overwrite an existing command --
26+
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
27+
//
28+
// declare global {
29+
// namespace Cypress {
30+
// interface Chainable {
31+
// login(email: string, password: string): Chainable<void>
32+
// drag(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
33+
// dismiss(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
34+
// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
35+
// }
36+
// }
37+
// }

frontend/cypress/support/e2e.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// ***********************************************************
2+
// This example support/e2e.ts is processed and
3+
// loaded automatically before your test files.
4+
//
5+
// This is a great place to put global configuration and
6+
// behavior that modifies Cypress.
7+
//
8+
// You can change the location of this file or turn off
9+
// automatically serving support files with the
10+
// 'supportFile' configuration option.
11+
//
12+
// You can read more here:
13+
// https://on.cypress.io/configuration
14+
// ***********************************************************
15+
16+
// Import commands.js using ES2015 syntax:
17+
import './commands'
18+
19+
// Alternatively you can use CommonJS syntax:
20+
// require('./commands')

frontend/cypress/tsconfig.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"include": [
4+
"../node_modules/cypress",
5+
"**/*.ts"
6+
],
7+
"compilerOptions": {
8+
"noEmit": false,
9+
"sourceMap": false,
10+
"types": [
11+
"cypress"
12+
]
13+
},
14+
}

0 commit comments

Comments
 (0)