Browse Source

更新图标更新tauri配置

caner 1 year ago
parent
commit
338d59ae22

+ 12 - 12
src-tauri/Cargo.lock

@@ -2,6 +2,18 @@
 # It is not intended for manual editing.
 # It is not intended for manual editing.
 version = 4
 version = 4
 
 
+[[package]]
+name = "Control"
+version = "0.1.0"
+dependencies = [
+ "serde",
+ "serde_json",
+ "tauri",
+ "tauri-build",
+ "tauri-plugin-mqtt",
+ "tauri-plugin-shell",
+]
+
 [[package]]
 [[package]]
 name = "addr2line"
 name = "addr2line"
 version = "0.24.2"
 version = "0.24.2"
@@ -3902,18 +3914,6 @@ dependencies = [
  "utf-8",
  "utf-8",
 ]
 ]
 
 
-[[package]]
-name = "test"
-version = "0.1.0"
-dependencies = [
- "serde",
- "serde_json",
- "tauri",
- "tauri-build",
- "tauri-plugin-mqtt",
- "tauri-plugin-shell",
-]
-
 [[package]]
 [[package]]
 name = "thin-slice"
 name = "thin-slice"
 version = "0.1.1"
 version = "0.1.1"

+ 2 - 2
src-tauri/Cargo.toml

@@ -1,7 +1,7 @@
 [package]
 [package]
-name = "test"
+name = "Control"
 version = "0.1.0"
 version = "0.1.0"
-description = "A Tauri App"
+description = "车辆控制端"
 authors = ["Caner"]
 authors = ["Caner"]
 edition = "2021"
 edition = "2021"
 
 

BIN
src-tauri/icons/128x128.png


BIN
src-tauri/icons/128x128@2x.png


BIN
src-tauri/icons/32x32.png


BIN
src-tauri/icons/icon.icns


BIN
src-tauri/icons/icon.ico


BIN
src-tauri/icons/icon.png


+ 2 - 3
src-tauri/tauri.conf.json

@@ -1,8 +1,8 @@
 {
 {
   "$schema": "https://schema.tauri.app/config/2",
   "$schema": "https://schema.tauri.app/config/2",
-  "productName": "test",
+  "productName": "Control",
   "version": "0.1.0",
   "version": "0.1.0",
-  "identifier": "com.test.app",
+  "identifier": "com.control.app",
   "build": {
   "build": {
     "beforeDevCommand": "yarn dev",
     "beforeDevCommand": "yarn dev",
     "devUrl": "http://localhost:6555",
     "devUrl": "http://localhost:6555",
@@ -12,7 +12,6 @@
   "app": {
   "app": {
     "windows": [
     "windows": [
       {
       {
-        "title": "test",
         "center": true,
         "center": true,
         "transparent": true,
         "transparent": true,
         "decorations": false,
         "decorations": false,

+ 0 - 4
src/components/gauge.vue

@@ -1,14 +1,10 @@
 <script setup lang="ts">
 <script setup lang="ts">
 import * as echarts from 'echarts'
 import * as echarts from 'echarts'
-import { GaugeChart } from 'echarts/charts'
-import { LabelLayout, UniversalTransition } from 'echarts/features'
-import { CanvasRenderer } from 'echarts/renderers'
 import {
 import {
   onUnmounted,
   onUnmounted,
   onMounted, ref, watch
   onMounted, ref, watch
 } from 'vue'
 } from 'vue'
 
 
-echarts.use([ GaugeChart, LabelLayout, UniversalTransition, CanvasRenderer ])
 const props = withDefaults(defineProps<{
 const props = withDefaults(defineProps<{
   value: number,
   value: number,
   gears?: string
   gears?: string