Skip to content

Commit 784541e

Browse files
committed
upd: Improve the graphics and add health check
1 parent 2a14d4a commit 784541e

12 files changed

Lines changed: 37 additions & 25 deletions

File tree

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "algobootstrap-homepage",
2+
"name": "algo-bootstrap-website",
33
"version": "1.0.0",
4-
"description": "Algobootstrap Homepage",
4+
"description": "Algo Bootstrap Website",
55
"main": "index.js",
66
"scripts": {
77
"preinstall": "npx only-allow pnpm",
@@ -10,7 +10,7 @@
1010
"gen:client-router": "node scripts/client-routes.gen.js",
1111
"dev:start": "cross-env NODE_ENV=development tsnd --respawn --rs --transpile-only -P src/server/tsconfig.json --unhandled-rejections=warn --inspect=127.0.0.1:9232 src/server/index.ts",
1212
"dev": "concurrently -r \"npm:dev:start\" \"npm:gen:client-router\"",
13-
"build:client": "rimraf dist && vite-ssr build --ssr src/client/entry-server.ts",
13+
"build:client": "rimraf dist && vite-ssr build --ssr src/client/entry-server.ts",
1414
"build:server": "rimraf app && tsc -p src/server/tsconfig.json && copyfiles -u3 \"src/**/*.js\" app",
1515
"build": "pnpm run build:client && pnpm run build:server",
1616
"start": "cross-env NODE_ENV=production node --unhandled-rejections=warn app/server/index.js",
@@ -25,13 +25,13 @@
2525
"ssr"
2626
],
2727
"author": {
28-
"name": "sdutacm",
29-
"email": "sdutacm@163.com"
28+
"name": "algoUX",
29+
"url": "https://algoux.org/"
3030
},
3131
"license": "MIT",
3232
"repository": {
3333
"type": "git",
34-
"url": "git+https://github.com/algoux/algo-bootstrap.git"
34+
"url": "git+https://github.com/algoux/algo-bootstrap-website.git"
3535
},
3636
"dependencies": {
3737
"@element-plus/icons-vue": "^2.3.2",
426 KB
Loading
152 KB
Loading
596 KB
Loading
205 KB
Loading

src/client/components/download-button.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@ import { Prop } from 'vue-property-decorator';
44
import macOS from '@client/assets/images/macos.png';
55
import windows from '@client/assets/images/windows.png';
66
import download from '@client/assets/images/download.png';
7-
import platformUtil from '@client/utils/platform.util';
87
import { ReleasesConfig } from '@client/utils/data.config';
98
import { ElMessage } from 'element-plus';
10-
// import ReleasesConfig from '@/utils/data.config';
119
1210
@Options({
1311
components: {
14-
ElMessage,
12+
1513
},
1614
})
1715
export default class DownloadButton extends Vue {

src/client/components/guide.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default class Guide extends Vue {
1919
const texts = [
2020
this.$refs['split-text-title'],
2121
this.$refs['split-text-desc'],
22-
this.$refs['split-text-link'],
22+
// this.$refs['split-text-link'],
2323
this.$refs['guide-video'],
2424
];
2525
@@ -62,7 +62,7 @@ export default class Guide extends Vue {
6262
<p class="split-text" ref="split-text-desc">
6363
{{ guideProps.description }}
6464
</p>
65-
<a :href="guideProps.guideURL" class="split-text" ref="split-text-link">视频教程 ↗</a>
65+
<!-- <a :href="guideProps.guideURL" class="split-text" ref="split-text-link">视频教程 ↗</a> -->
6666
</div>
6767
<div class="guide-display" ref="guide-video">
6868
<div class="guide-display-video">

src/client/components/release-item.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { ElMessage } from 'element-plus';
1111
@Options({
1212
components: {
1313
DownloadButton,
14-
ElMessage,
1514
},
1615
})
1716
export default class ReleaseItem extends Vue {

src/client/modules/home/home.view.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import BackTop from '@client/components/backtop.vue';
1111
import { RenderMethod, RenderMethodKind } from 'bwcx-client-vue3';
1212
import HomeDisplay from './home-display.vue';
1313
import axios from 'axios';
14-
import GetReleasesDTO from '@common/modules/releases/releases.dto';
14+
import { GetReleasesDTO } from '@common/modules/releases/releases.dto';
1515
1616
@View('/')
1717
@Options({
@@ -60,7 +60,6 @@ export default class Home extends Vue {
6060
this.platform = platformInfo.os !== 'Unknown' ? platformInfo.os : 'windows';
6161
this.arch = platformInfo.architecture !== 'Unknown' ? platformInfo.architecture : 'x64';
6262
this.isClientMounted = true;
63-
console.log('Home View Info:', this.homeState);
6463
}
6564
6665
beforeDestroy() {
@@ -69,7 +68,6 @@ export default class Home extends Vue {
6968
created() {
7069
try {
7170
axios.get('https://cdn.algoux.cn/algo-bootstrap/version.json').then((response) => {
72-
console.log('Home View Data loaded:', response.data);
7371
this.homeState = response.data;
7472
});
7573
} catch (error) {
@@ -101,10 +99,10 @@ export default class Home extends Vue {
10199
:noise-intensity="1.75"
102100
:scale="0.15"
103101
:rotation="30"
104-
:isMobile="homeState.isMobile"
102+
:isMobile="this.isMobile"
105103
/>
106104
</client-only>
107-
<back-top v-if="!homeState.isMobile" />
105+
<back-top v-if="!this.isMobile" />
108106
</div>
109107
</template>
110108

src/client/utils/data.config.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import shotOneMac from '@client/assets/images/shot/shot-1-mac.png';
2+
import shotTwoMac from '@client/assets/images/shot/shot-2-mac.png';
3+
import shotThreeMac from '@client/assets/images/shot/shot-3-mac.png';
24
import shotOneWin from '@client/assets/images/shot/shot-1-win.png';
5+
import shotTwoWin from '@client/assets/images/shot/shot-2-win.png';
6+
import shotThreeWin from '@client/assets/images/shot/shot-3-win.png';
37
import { GuideRPO } from '@common/modules/guide/guide.rpo';
48

59
export class DataConfig {
@@ -37,15 +41,15 @@ export class GuideConfig {
3741
}
3842

3943
macGuideConfig: GuideRPO[] = [
40-
{ id: 1, title: '喵喵喵喵喵', description: "喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵", guideURL: "#", imageURL: shotOneMac},
41-
{ id: 2, title: '喵喵喵喵喵', description: "喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵", guideURL: "#", imageURL: shotOneMac},
42-
{ id: 3, title: '喵喵喵喵喵', description: "喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵", guideURL: "#", imageURL: shotOneMac}
44+
{ id: 1, title: '轻松上手,配置难题全搞定', description: "Algo Bootstrap 替你将复杂的配置自动完成。只需轻点鼠标,即可拥有整套编程环境。", guideURL: "#", imageURL: shotOneMac},
45+
{ id: 2, title: '开箱即用的调试支持', description: "无需参考教程,即使是单步调试,照样信手拈来。", guideURL: "#", imageURL: shotTwoMac},
46+
{ id: 3, title: '为初学者量身打造的辅助提示', description: "内置强大的代码风格和错误检查功能,助你编程一臂之力。", guideURL: "#", imageURL: shotThreeMac}
4347
]
4448

4549
winGuideConfig: GuideRPO[] = [
46-
{ id: 1, title: '喵喵喵喵喵', description: "喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵", guideURL: "#", imageURL: shotOneWin},
47-
{ id: 2, title: '喵喵喵喵喵', description: "喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵", guideURL: "#", imageURL: shotOneWin},
48-
{ id: 3, title: '喵喵喵喵喵', description: "喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵", guideURL: "#", imageURL: shotOneWin},
50+
{ id: 1, title: '轻松上手,配置难题全搞定', description: "Algo Bootstrap 替你将复杂的配置自动完成。只需轻点鼠标,即可拥有整套编程环境。", guideURL: "#", imageURL: shotOneWin},
51+
{ id: 2, title: '开箱即用的调试支持', description: "无需参考教程,即使是单步调试,照样信手拈来。", guideURL: "#", imageURL: shotTwoWin},
52+
{ id: 3, title: '为初学者量身打造的辅助提示', description: "内置强大的代码风格和错误检查功能,助你编程一臂之力。", guideURL: "#", imageURL: shotThreeWin},
4953
]
5054

5155
get guideConfigGroups(): GuideRPO[] {

0 commit comments

Comments
 (0)