Skip to content

Commit

Permalink
rename folder
Browse files Browse the repository at this point in the history
  • Loading branch information
00INDEX committed May 3, 2023
1 parent b16bef4 commit 321a813
Show file tree
Hide file tree
Showing 20 changed files with 1,021 additions and 0 deletions.
24 changes: 24 additions & 0 deletions ui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.DS_Store
node_modules
package-lock.json
/dist


# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
5 changes: 5 additions & 0 deletions ui/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
19 changes: 19 additions & 0 deletions ui/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "es5",
"module": "esnext",
"baseUrl": "./",
"moduleResolution": "node",
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
}
}
51 changes: 51 additions & 0 deletions ui/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"name": "collie-ui",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"axios": "^1.3.6",
"core-js": "^3.8.3",
"element-ui": "^2.15.13",
"markdown-it": "^13.0.1",
"marked": "^4.3.0",
"uuid": "^9.0.0",
"vue": "^2.6.14",
"vue-carousel": "^0.18.0",
"vue-dragscroll": "^4.0.5"
},
"devDependencies": {
"@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.12.16",
"@types/markdown-it": "^12.2.3",
"@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-plugin-eslint": "~5.0.0",
"@vue/cli-service": "~5.0.0",
"eslint": "^7.32.0",
"eslint-plugin-vue": "^8.0.3",
"vue-template-compiler": "^2.6.14"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "@babel/eslint-parser"
},
"rules": {}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead"
]
}
Binary file added ui/public/favicon.ico
Binary file not shown.
18 changes: 18 additions & 0 deletions ui/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
36 changes: 36 additions & 0 deletions ui/src/App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<template>
<div id="app">
<ModelShow/>
</div>
</template>

<script>
import ModelShow from './components/ModelShow.vue';
export default {
name: 'App',
head: {
title: {
inner: 'Collie'
}
},
components: {
ModelShow
}
}
</script>

<style>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
height: 100%;
width: 100%;
overflow: hidden;
position: fixed;
left: 0;
top: 0;
}
</style>
20 changes: 20 additions & 0 deletions ui/src/assets/example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"name": "MOSS",
"dialogue": [
{"MOSS":"你好,我是MOSS"},
{"HUMAN":"你好,我是HUMAN"},
{"MOSS":"很高兴认识你"},
{"HUMAN":"我也是。"}
]
},
{
"name": "Alpaca",
"dialogue": [
{"Alpaca":"你好,我是Alpaca"},
{"HUMAN":"你好,我是HUMAN"},
{"Alpaca":"很高兴认识你"},
{"HUMAN":"我也是。"}
]
}
]
32 changes: 32 additions & 0 deletions ui/src/assets/iconfont/iconfont.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
@font-face {
font-family: "iconfont"; /* Project id 4035487 */
src: url('iconfont.woff2?t=1682826765060') format('woff2'),
url('iconfont.woff?t=1682826765060') format('woff'),
url('iconfont.ttf?t=1682826765060') format('truetype');
}

.iconfont {
font-family: "iconfont" !important;
font-size: 50px;
color: black;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.icon-chuangjian:before {
content: "\e614";
}

.icon-cangpeitubiao_xiazaipandiandanxiazaidayinmoban:before {
content: "\e623";
}

.icon-fasong:before {
content: "\e604";
}

.icon-qingkong:before {
content: "\e946";
}

1 change: 1 addition & 0 deletions ui/src/assets/iconfont/iconfont.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions ui/src/assets/iconfont/iconfont.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"id": "4035487",
"name": "collie",
"font_family": "iconfont",
"css_prefix_text": "icon-",
"description": "",
"glyphs": [
{
"icon_id": "12732490",
"name": "创建",
"font_class": "chuangjian",
"unicode": "e614",
"unicode_decimal": 58900
},
{
"icon_id": "16563853",
"name": "下载盘点单、下载打印模板",
"font_class": "cangpeitubiao_xiazaipandiandanxiazaidayinmoban",
"unicode": "e623",
"unicode_decimal": 58915
},
{
"icon_id": "1418205",
"name": "发送",
"font_class": "fasong",
"unicode": "e604",
"unicode_decimal": 58884
},
{
"icon_id": "6219264",
"name": "清空",
"font_class": "qingkong",
"unicode": "e946",
"unicode_decimal": 59718
}
]
}
Binary file added ui/src/assets/iconfont/iconfont.ttf
Binary file not shown.
Binary file added ui/src/assets/iconfont/iconfont.woff
Binary file not shown.
Binary file added ui/src/assets/iconfont/iconfont.woff2
Binary file not shown.
Binary file added ui/src/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 321a813

Please sign in to comment.