-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add shared-controls * update submodules * refactor extension ui
- Loading branch information
1 parent
8005b51
commit 35e4f51
Showing
52 changed files
with
1,032 additions
and
957 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.yaml | ||
*.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,32 @@ | ||
version: '3' | ||
|
||
includes: | ||
ecma: | ||
taskfile: ../mono-dev/task/ecma.yaml | ||
internal: true | ||
|
||
tasks: | ||
dev: | ||
desc: Run frontend app in watch mode | ||
cmds: | ||
- pnpm exec vite --host | ||
|
||
runtime-workex: | ||
cmds: | ||
- workex -p runtime src/runtime/protocol.ts --lib-path workex --no-lib | ||
- task: ecma:vite-dev | ||
|
||
build: | ||
desc: Build production bundle | ||
cmds: | ||
- npx tsc | ||
- npx vite build | ||
# build: | ||
# desc: Build production bundle | ||
# cmds: | ||
# - npx tsc | ||
# - npx vite build | ||
|
||
check: | ||
desc: Check for errors | ||
cmds: | ||
- task: eslint | ||
vars: | ||
ESLINT_ARGS: "" | ||
- task: prettier | ||
vars: | ||
PRETTIER_ARGS: --check | ||
- task: ecma:tsc-check-build | ||
- task: ecma:eslint-check | ||
- task: ecma:prettier-check | ||
|
||
fix: | ||
desc: Fix errors | ||
cmds: | ||
- task: prettier | ||
vars: | ||
PRETTIER_ARGS: --write | ||
- task: eslint | ||
vars: | ||
ESLINT_ARGS: --fix | ||
- task: ecma:eslint-fix | ||
- task: ecma:prettier-fix | ||
|
||
eslint: | ||
cmds: | ||
- npx eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --cache {{.ESLINT_ARGS}} | ||
|
||
prettier: | ||
cmds: | ||
- npx prettier "./**/*.{mts,ts,tsx,json,js,jsx,cjs,mjs,css,html}" {{.PRETTIER_ARGS}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,6 @@ | ||
import js from '@eslint/js' | ||
import globals from 'globals' | ||
import reactHooks from 'eslint-plugin-react-hooks' | ||
import reactRefresh from 'eslint-plugin-react-refresh' | ||
import tseslint from 'typescript-eslint' | ||
import { config } from "mono-dev/eslint"; | ||
|
||
export default tseslint.config( | ||
{ ignores: ['dist'] }, | ||
{ | ||
extends: [js.configs.recommended, ...tseslint.configs.recommended], | ||
files: ['**/*.{ts,tsx}'], | ||
languageOptions: { | ||
ecmaVersion: 2020, | ||
globals: globals.browser, | ||
}, | ||
plugins: { | ||
'react-hooks': reactHooks, | ||
'react-refresh': reactRefresh, | ||
}, | ||
rules: { | ||
...reactHooks.configs.recommended.rules, | ||
'react-refresh/only-export-components': [ | ||
'warn', | ||
{ allowConstantExport: true }, | ||
], | ||
}, | ||
}, | ||
) | ||
export default config({ | ||
ignores: ["dist"], | ||
tsconfigRootDir: import.meta.dirname, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="mobile-web-app-capable" content="yes"> | ||
<meta name="theme-color" content="#FF0000"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="mobile-web-app-capable" content="yes" /> | ||
<meta name="theme-color" content="#FF0000" /> | ||
<!-- <meta name="apple-mobile-web-app-capable" content="yes"> --> | ||
<!-- <link ref="manifest" href="/manifest.json" /> --> | ||
<link rel="icon" type="image/svg+xml" href="/icon.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>IST Simulator</title> | ||
<link rel="icon" type="image/svg+xml" href="/icon.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>IST Simulator</title> | ||
<style> | ||
:root { | ||
font-synthesis: none; | ||
text-rendering: optimizeLegibility; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
body { | ||
margin: 0; | ||
width: 100vw; | ||
} | ||
:root { | ||
font-synthesis: none; | ||
text-rendering: optimizeLegibility; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
body { | ||
margin: 0; | ||
width: 100vw; | ||
} | ||
|
||
#-root- { | ||
width: 100vw; | ||
} | ||
#-root- { | ||
width: 100vw; | ||
} | ||
</style> | ||
</head> | ||
<body style="height: 100vh;overflow: hidden"> | ||
<div id="-root-" style="height: 100vh"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
</head> | ||
<body style="height: 100vh; overflow: hidden"> | ||
<div id="-root-" style="height: 100vh"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.