Skip to content

Commit 7fb9bd1

Browse files
committed
first commit
0 parents  commit 7fb9bd1

File tree

195 files changed

+36650
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+36650
-0
lines changed

.gitignore

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
### Go template
2+
# Binaries for programs and plugins
3+
*.exe
4+
*.exe~
5+
*.dll
6+
*.so
7+
*.dylib
8+
9+
# Test binary, built with `go test -c`
10+
*.test
11+
12+
# Output of the go coverage tool, specifically when used with LiteIDE
13+
*.out
14+
15+
# Dependency directories (remove the comment below to include it)
16+
# vendor/
17+
18+
### Example user template template
19+
### Example user template
20+
21+
# IntelliJ project files
22+
.idea
23+
*.iml
24+
out
25+
gen
26+
/logs/
27+
/sql/
28+
/out/
29+
/db/

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "UI"]
2+
path = UI
3+
url = https://github.com/ZimaBoard/CasaOS-UI.git

Makefile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.PHONY:build build-ui build-backend help
2+
3+
build: build-ui build-backend
4+
5+
6+
build-ui:
7+
cd UI && yarn install && yarn build
8+
9+
build-backend:
10+
export CGO_ENABLED=1;export CGO_LDFLAGS=-static;go mod tidy;go build -o ./casa main.go;upx --lzma --best casa
11+
12+
help:
13+
@echo "call john"

README-ZH.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## 目录结构
2+
3+
- conf 配置文件
4+
- route 路由
5+
- service 方法的具体实现
6+
- utils 工具
7+
- main.go 入口

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Oasis
2+

UI/.browserslistrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not dead

UI/.env.dev

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// .env.dev
2+
NODE_ENV='dev'

UI/.env.production

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// .env.production
2+
NODE_ENV='prod'

UI/.eslintrc.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true
5+
},
6+
'extends': [
7+
'plugin:vue/essential',
8+
'eslint:recommended'
9+
],
10+
parserOptions: {
11+
parser: 'babel-eslint'
12+
},
13+
rules: {
14+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
15+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
16+
'vue/no-unused-vars':'off'
17+
}
18+
}

UI/.gitignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
6+
# local env files
7+
.env.local
8+
.env.*.local
9+
10+
# Log files
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# Editor directories and files
17+
.idea
18+
.vscode
19+
*.suo
20+
*.ntvs*
21+
*.njsproj
22+
*.sln
23+
*.sw?

UI/README.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!--
2+
* @Author: JerryK
3+
* @Date: 2021-09-22 14:24:43
4+
* @LastEditors: JerryK
5+
* @LastEditTime: 2021-09-22 14:44:31
6+
* @Description:
7+
* @FilePath: /CasaOS-UI/README.md
8+
-->
9+
# CasaOS-UI
10+
11+
The front-end of CasaOs,build with VueJS
12+
13+
## Project setup
14+
```
15+
yarn install
16+
```
17+
18+
### Compiles and hot-reloads for development
19+
```
20+
yarn serve
21+
```
22+
23+
### Compiles and minifies for production
24+
```
25+
yarn build
26+
```
27+
Will be output to the ../web folder
28+
29+
### Lints and fixes files
30+
```
31+
yarn lint
32+
```

UI/babel.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/cli-plugin-babel/preset'
4+
]
5+
}

UI/package.json

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "CasaOS",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"serve": "vue-cli-service serve --mode dev",
7+
"build": "vue-cli-service build --no-clean --dest ../web --mode production",
8+
"lint": "vue-cli-service lint"
9+
},
10+
"dependencies": {
11+
"axios": "^0.21.4",
12+
"buefy": "^0.9.0",
13+
"core-js": "^3.6.5",
14+
"easy-affix": "^1.0.8",
15+
"lodash.debounce": "^4.0.8",
16+
"lottie-vuejs": "^0.4.0",
17+
"moment": "^2.29.1",
18+
"nth-check": "^2.0.1",
19+
"qs": "^6.10.1",
20+
"vee-validate": "^3.4.12",
21+
"vue": "^2.6.11",
22+
"vue-router": "^3.2.0",
23+
"vue-slider-component": "^3.2.14",
24+
"vuex": "^3.4.0",
25+
"vuex-persistedstate": "^4.0.0",
26+
"yargs-parser": "^20.2.9"
27+
},
28+
"devDependencies": {
29+
"@vue/cli-plugin-babel": "~4.5.0",
30+
"@vue/cli-plugin-eslint": "~4.5.0",
31+
"@vue/cli-plugin-router": "~4.5.0",
32+
"@vue/cli-plugin-vuex": "~4.5.0",
33+
"@vue/cli-service": "~4.5.0",
34+
"babel-eslint": "^10.1.0",
35+
"compression-webpack-plugin": "^9.0.0",
36+
"eslint": "^6.7.2",
37+
"eslint-plugin-vue": "^6.2.2",
38+
"node-sass": "^4.9.0",
39+
"sass-loader": "^7.0.1",
40+
"vue-cli-plugin-buefy": "~0.3.8",
41+
"vue-template-compiler": "^2.6.11"
42+
}
43+
}

UI/public/browserconfig.xml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<browserconfig>
3+
<msapplication>
4+
<tile>
5+
<square150x150logo src="/ui/img/icon/mstile-150x150.png"/>
6+
<TileColor>#da532c</TileColor>
7+
</tile>
8+
</msapplication>
9+
</browserconfig>

UI/public/favicon.ico

14.7 KB
Binary file not shown.
Loading
9.11 KB
Loading
693 Bytes
Loading
1.34 KB
Loading
5.96 KB
Loading
Loading

UI/public/img/ani/rocket-launching.json

+1
Large diffs are not rendered by default.

UI/public/index.html

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!--
2+
* @Author: JerryK
3+
* @Date: 2021-09-22 14:24:43
4+
* @LastEditors: JerryK
5+
* @LastEditTime: 2021-09-24 18:03:02
6+
* @Description:
7+
* @FilePath: /CasaOS-UI/public/index.html
8+
-->
9+
10+
<!DOCTYPE html>
11+
<html lang="">
12+
13+
<head>
14+
<meta charset="utf-8">
15+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
16+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
17+
<link rel="apple-touch-icon" sizes="180x180" href="<%= BASE_URL %>img/icon/apple-touch-icon.png">
18+
<link rel="icon" type="image/png" sizes="32x32" href="<%= BASE_URL %>img/icon/favicon-32x32.png">
19+
<link rel="icon" type="image/png" sizes="16x16" href="<%= BASE_URL %>img/icon/favicon-16x16.png">
20+
<link rel="manifest" href="<%= BASE_URL %>site.webmanifest">
21+
<link rel="mask-icon" href="<%= BASE_URL %>img/icon/safari-pinned-tab.svg" color="#5bbad5">
22+
<meta name="msapplication-TileColor" content="#da532c">
23+
<meta name="theme-color" content="#ffffff">
24+
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
25+
<link rel="stylesheet" href="//cdn.materialdesignicons.com/2.0.46/css/materialdesignicons.min.css">
26+
<script src="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/js/all.js"
27+
integrity="sha256-GaerX2a/DuOnPrxn/4vH13dobiFUe/27LO6gCZDNauA=" crossorigin="anonymous"></script>
28+
<title>
29+
<%= htmlWebpackPlugin.options.title %>
30+
</title>
31+
</head>
32+
33+
<body>
34+
<noscript>
35+
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
36+
Please enable it to continue.</strong>
37+
</noscript>
38+
<div id="app"></div>
39+
<!-- built files will be auto injected -->
40+
</body>
41+
42+
</html>

UI/public/site.webmanifest

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "",
3+
"short_name": "",
4+
"icons": [
5+
{
6+
"src": "/ui/img/icon/android-chrome-192x192.png",
7+
"sizes": "192x192",
8+
"type": "image/png"
9+
}
10+
],
11+
"theme_color": "#ffffff",
12+
"background_color": "#ffffff",
13+
"display": "standalone"
14+
}

0 commit comments

Comments
 (0)