Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.

Commit 2340190

Browse files
committed
init gui
1 parent b5ff86d commit 2340190

13 files changed

Lines changed: 1001 additions & 3 deletions

app/utils.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ function get($param, $default = null)
3636
*/
3737
function extracted($languages, $dark)
3838
{
39-
$languages = $languages ? $languages : array(
40-
array("name" => "none", "percent" => 100, "color" => "#ebedf0", "text" => "empty"),
41-
);
39+
if (!$languages) {
40+
$languages = array(
41+
array("name" => "none", "percent" => 100, "color" => "#ebedf0", "text" => "empty"),
42+
);
43+
}
4244
$bar = ceil(count($languages) / 2);
4345
$height = 215 + ($bar > 4 ? ($bar - 4) * 20 : 0);
4446

gui/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
.idea

gui/README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<p style="display:flex; justify-content: center">
2+
3+
</p>
4+
<p align="center">
5+
<a href="https://tdesign.tencent.com/starter/vue-next/#/dashboard/base" target="_blank">
6+
<img alt="TDesign Logo" width="200" src="https://tdesign.gtimg.com/starter/brand-logo.svg">
7+
</a>
8+
</p>
9+
10+
<p align="center">
11+
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/vite.svg" alt="node compatility"></a>
12+
<a href="https://github.com/Tencent/tdesign-vue-next/blob/develop/LICENSE">
13+
<img src="https://img.shields.io/npm/l/tdesign-vue-next.svg?sanitize=true" alt="License">
14+
</a>
15+
</p>
16+
17+
### 项目简介
18+
19+
TDesign Vue Next Starter 是一个基于 TDesign,使用 `Vue3``Vite3``TypeScript` 开发,可进行个性化主题配置,旨在提供项目开箱即用的、配置式的初始项目。
20+
21+
<p>
22+
·
23+
<a href="https://tdesign.tencent.com/starter/">使用文档</a>
24+
25+
</p>
26+
27+
### 开发
28+
29+
```bash
30+
## 安装依赖
31+
npm install
32+
33+
## 启动项目
34+
npm run dev
35+
```
36+
37+
### 构建
38+
39+
```bash
40+
## 构建正式环境
41+
npm run build
42+
43+
44+
### 开源协议
45+
46+
TDesign 遵循 [MIT 协议](https://github.com/Tencent/tdesign-vue-next-starter/LICENSE)。

gui/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<link rel="icon" href="/favicon.ico" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8+
<title>TDesign Vue Next Starter</title>
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
<script type="module" src="/src/main.ts"></script>
13+
</body>
14+
</html>

gui/package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "code-statistic",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vue-tsc --noEmit && vite build",
9+
"preview": "vite preview",
10+
"prepare": "node -e \"if(require('fs').existsSync('.git')){process.exit(1)}\" || is-ci || husky install"
11+
},
12+
"dependencies": {
13+
"tdesign-icons-vue-next": "^0.1.5",
14+
"tdesign-vue-next": "^0.21.1",
15+
"vite-svg-loader": "^3.6.0",
16+
"vue": "^3.2.37"
17+
},
18+
"devDependencies": {
19+
"@vitejs/plugin-vue": "^3.1.0",
20+
"typescript": "^4.6.4",
21+
"vite": "^3.1.0",
22+
"vue-tsc": "^0.40.4"
23+
},
24+
"description": "A tool that dynamically analyses code, counts the amount of code in each language in a repository or user, and generates results."
25+
}

0 commit comments

Comments
 (0)