From d941d0817a959f1b7341a7c9f742f5406b468cad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=BE=A3=E6=A9=99?= <2625835752@qq.com>
Date: Tue, 7 Jun 2022 11:54:13 +0800
Subject: [PATCH 1/3] docs: correct formulas
---
src/components/result-area/LayerResult.vue | 8 ++++----
src/latex.ts | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/components/result-area/LayerResult.vue b/src/components/result-area/LayerResult.vue
index a76b6e8..1abd3d4 100644
--- a/src/components/result-area/LayerResult.vue
+++ b/src/components/result-area/LayerResult.vue
@@ -27,13 +27,13 @@ defineProps<{ layer: Layer }>()
-
+
-
+
@@ -42,13 +42,13 @@ defineProps<{ layer: Layer }>()
-
+
-
+
diff --git a/src/latex.ts b/src/latex.ts
index 01434c4..dab318c 100644
--- a/src/latex.ts
+++ b/src/latex.ts
@@ -11,7 +11,7 @@ export const tex = {
B_ij: `B_{i j}=\\sum\\limits_{k=1^{e r} p l i}\\limits^{k=n^{\\mathrm{e} m e} p l i} \\bar{E}_{i j}^{k} \\frac{z_{k}^{2}-z_{k-1}^{2}}{2}`,
C_ij: `C_{i j}=\\sum\\limits_{k=1^{e r} p l i}\\limits^{k=n^{\\mathrm{e} m e} p l i} \\bar{E}_{i j}^{k} \\frac{z_{k}^{3}-z_{k-1}^{3}}{3}`,
- modules_apparents_matrix: `\\left\\{\\begin{array}{c}\\varepsilon_{o x} \\\\ \\varepsilon_{o y} \\\\ \\gamma_{o x y}\\end{array}\\right\\}=\\mathrm{h}[A]^{-1}\\left\\{\\begin{array}{c}\\sigma_{0 x} \\\\ \\sigma_{0 y} \\\\ \\sigma_{0 x y}\\end{array}\\right\\} = \\left[\\begin{array}{ccc}\\frac{1}{\\bar{E}_{x}} & -\\frac{\\bar{v}_{y x}}{\\bar{E}_{y}} & \\frac{\\bar{\\eta}_{x y}}{\\bar{G}_{x y}} \\\\ -\\frac{\\bar{v}_{x y}}{\\bar{E}_{x}} & \\frac{1}{\\overline{{E}}_{y}} & \\frac{\\bar{\\mu}_{x y}}{\\bar{G}_{x y}} \\\\ \\bar{\\eta}_{x} & \\bar{\\mu}_{y} & 1 \\\\ \\overline{\\bar{E}}_{x} & \\overline{\\bar{E}}_{y} & \\overline{\\bar{G}}_{x y}\\end{array}\\right]\\left\\{\\begin{array}{l}\\sigma_{0 x} \\\\ \\sigma_{0 y} \\\\ \\sigma_{0 x y}\\end{array}\\right\\}`,
+ modules_apparents_matrix: `\\left\\{\\begin{array}{c}\\varepsilon_{o x} \\\\ \\varepsilon_{o y} \\\\ \\gamma_{o x y}\\end{array}\\right\\}=\\mathrm{h}[A]^{-1}\\left\\{\\begin{array}{c}\\sigma_{0 x} \\\\ \\sigma_{0 y} \\\\ \\sigma_{0 x y}\\end{array}\\right\\} = \\left[\\begin{array}{ccc}\\frac{1}{\\bar{E}_{x}} & -\\frac{\\bar{v}_{y x}}{\\bar{E}_{y}} & \\frac{\\bar{\\eta}_{x y}}{\\bar{G}_{x y}} \\\\ -\\frac{\\bar{v}_{x y}}{\\bar{E}_{x}} & \\frac{1}{\\overline{{E}}_{y}} & \\frac{\\bar{\\nu}_{x y}}{\\bar{G}_{x y}} \\\\ \\bar{\\eta}_{x} & \\bar{\\nu}_{y} & 1 \\\\ \\overline{\\bar{E}}_{x} & \\overline{\\bar{E}}_{y} & \\overline{\\bar{G}}_{x y}\\end{array}\\right]\\left\\{\\begin{array}{l}\\sigma_{0 x} \\\\ \\sigma_{0 y} \\\\ \\sigma_{0 x y}\\end{array}\\right\\}`,
matrix_A: `\\left\\{\\begin{array}{c}\\sigma_{0 x} \\\\ \\sigma_{0 y} \\\\ \\sigma_{0 x y}\\end{array}\\right\\}=\\frac{1}{h}\\left[\\begin{array}{lll}A_{11} & A_{12} & A_{13} \\\\ A_{21} & A_{22} & A_{23} \\\\ A_{31} & A_{32} & A_{33}\\end{array}\\right]\\left\\{\\begin{array}{c}\\varepsilon_{o x} \\\\ \\varepsilon_{o y} \\\\ \\gamma_{o x y}\\end{array}\\right\\}`,
matrix_T: `\\left\\{\\begin{array}{l}\\sigma_{l} \\\\ \\sigma_{t} \\\\ \\sigma_{l t}\\end{array}\\right\\}=\\left[\\begin{array}{ccc}c^{2} & s^{2} & -2 c s \\\\ s^{2} & c^{2} & 2 c s \\\\ c s & -c s & c^{2}-s^{2}\\end{array}\\right]\\left\\{\\begin{array}{c}\\sigma_{x} \\\\ \\sigma_{y} \\\\ \\sigma_{x y}\\end{array}\\right\\}=[T]\\left\\{\\begin{array}{c}\\sigma_{x} \\\\ \\sigma_{y} \\\\ \\sigma_{x y}\\end{array}\\right\\}`,
From 5c1f43db4238e29013455853726a6ef22a900801 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=BE=A3=E6=A9=99?= <2625835752@qq.com>
Date: Tue, 7 Jun 2022 11:55:19 +0800
Subject: [PATCH 2/3] docs: optimize prompt
---
main.go | 11 +++++++----
package.json | 1 +
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/main.go b/main.go
index 600e51b..591eb16 100644
--- a/main.go
+++ b/main.go
@@ -13,18 +13,21 @@ import (
var dist embed.FS
func main() {
- print("这个黑框是复合材料性能计算程序的本地后台服务,请勿在结束使用前关闭它")
-
rand.Seed(time.Now().UnixNano())
PORT := strconv.Itoa(8000 + rand.Intn(1000)) // 在8000-9000随机挑一个作为端口
+ url := `http://127.0.0.1:`+PORT+"/dist/"
+
+ println("这个黑框是复合材料性能计算程序的本地后台服务,请勿在结束使用前关闭它")
+ println("您可以访问 " + url + " 来使用程序")
+
http.Handle("/", http.FileServer(http.FS(dist)))
// windows
- exec.Command(`cmd`, `/c`, `start`, `http://127.0.0.1:`+PORT+"/dist/").Start()
+ // exec.Command(`cmd`, `/c`, `start`, url).Start()
// mac
- // exec.Command(`open`, `http://127.0.0.1:`+PORT+"/dist/").Start()
+ exec.Command(`open`, url).Start()
http.ListenAndServe(":"+PORT, nil)
}
diff --git a/package.json b/package.json
index 67a9e1e..600cd1e 100644
--- a/package.json
+++ b/package.json
@@ -6,6 +6,7 @@
"dev": "vite",
"build": "vue-tsc --noEmit && vite build --base=./",
"build-flask": "vue-tsc --noEmit && vite build --base=/static/",
+ "build-go": "vue-tsc --noEmit && vite build --base=/dist/",
"preview": "vite preview"
},
"dependencies": {
From 0ac058616577b12738d17df8e36c2fbafefc47b4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=BE=A3=E6=A9=99?= <2625835752@qq.com>
Date: Tue, 7 Jun 2022 12:07:21 +0800
Subject: [PATCH 3/3] docs: optimize docs
---
src/components/FooterArea.vue | 14 ++++++++++++--
src/components/LayerAttributeInput.vue | 4 ++--
2 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/src/components/FooterArea.vue b/src/components/FooterArea.vue
index aa8d26d..0397a03 100644
--- a/src/components/FooterArea.vue
+++ b/src/components/FooterArea.vue
@@ -13,13 +13,23 @@ function open(href: string) {
- Made with ❤️ by GitHub@laorange
- 赞赏支持
+
+