Skip to content

Commit 23892a3

Browse files
committed
Rename to Vizmo.
1 parent 90df6db commit 23892a3

File tree

8 files changed

+35
-7
lines changed

8 files changed

+35
-7
lines changed

.github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@ jobs:
2828
run: npm test
2929

3030
- name: Build
31+
env:
32+
VITE_GITHUB_URL: ${{ github.server_url }}/${{ github.repository }}
3133
run: npm run build

.github/workflows/deploy.yml

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
run: npm ci
4141

4242
- name: Build
43+
env:
44+
VITE_GITHUB_URL: ${{ github.server_url }}/${{ github.repository }}
4345
run: npm run build
4446

4547
- name: Setup Pages

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[WIP] Wit Motion 低功耗蓝牙设备的 Web 控制台, 目前支持
1+
[WIP] 目前支持 IMU 蓝牙设备的
22

33
- [x] [WT9011DCL](https://wit-motion.yuque.com/wumwnr/docs/rwiclb)
44

index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<meta charset="UTF-8" />
55

66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>WitMotion BLE</title>
7+
<title>Vizmo</title>
88
</head>
99
<body>
1010
<div id="app"></div>
1111
<script type="module" src="/src/main.ts"></script>
1212

13-
<a href="https://github.com/hanabix/wit-motion" class="github-corner" aria-label="View source on GitHub">
13+
<a href="%VITE_GITHUB_URL%" class="github-corner" aria-label="View source on GitHub">
1414
<svg width="80" height="80" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: fixed; bottom: 0; border: 0; right: 0; transform: scale(1, -1);" aria-hidden="true">
1515
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
1616
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>

package-lock.json

+18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"vue": "^3.5.13"
1919
},
2020
"devDependencies": {
21+
"@types/node": "^22.13.8",
2122
"@types/web-bluetooth": "^0.0.20",
2223
"@vite-pwa/assets-generator": "^0.2.6",
2324
"@vitejs/plugin-vue": "^5.2.1",

src/App.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ onMounted(load)
4444
<nav class="fixed inset-x-0 top-0 z-50 bg-white p-4 shadow flex justify-between items-center">
4545
<h1 class="text-xl font-bold text-gray-700 flex items-center gap-1">
4646
<span class="material-icons text-blue-500">bluetooth</span>
47-
WitMotion
47+
Vizmo
4848
</h1>
4949
<button v-if="devices.length > 0" class="p-2 hover:bg-gray-100 flex items-center" title="多选">
5050
<span class="material-icons-outlined text-2xl text-gray-700">library_add_check</span>

vite.config.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import vue from '@vitejs/plugin-vue'
44
import tailwindcss from '@tailwindcss/vite'
55

66
export default defineConfig({
7+
define: {
8+
'import.meta.env.VITE_GITHUB_URL': JSON.stringify(
9+
process.env.VITE_GITHUB_URL || '#'
10+
)
11+
},
712
base: './',
813
plugins: [
914
tailwindcss(),
@@ -18,9 +23,9 @@ export default defineConfig({
1823
},
1924

2025
manifest: {
21-
name: 'WitMotion BLE',
22-
short_name: 'wble',
23-
description: 'Manage low energy bluetooth devices of WitMotion',
26+
name: 'Vizmo',
27+
short_name: 'vizmo',
28+
description: 'Visualization of IMU in realtime or replay',
2429
theme_color: '#0000FF',
2530
},
2631

0 commit comments

Comments
 (0)