Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(ui): Rewrite with latest element-plus #166

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions ui/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions ui/.browserslistrc

This file was deleted.

34 changes: 0 additions & 34 deletions ui/.eslintrc.js

This file was deleted.

23 changes: 12 additions & 11 deletions ui/.gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
.DS_Store
node_modules
/dist


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

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

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.vscode
.DS_Store
*.suo
*.ntvs*
*.njsproj
Expand Down
31 changes: 3 additions & 28 deletions ui/README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,5 @@
# rttys-ui
# Vue 3 + Vite

## Install node 12
```
nvm install 12
nvm use 12
```
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
Learn more about IDE Support for Vue in the [Vue Docs Scaling up Guide](https://vuejs.org/guide/scaling-up/tooling.html#ide-support).
5 changes: 0 additions & 5 deletions ui/babel.config.js

This file was deleted.

37 changes: 37 additions & 0 deletions ui/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import globals from 'globals'
import pluginJs from '@eslint/js'
import pluginVue from 'eslint-plugin-vue'

export default [
{files: ['**/*.{js,mjs,cjs,vue}']},
{languageOptions: { globals: globals.browser }},
pluginJs.configs.recommended,
...pluginVue.configs['flat/essential'],
{
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'vue/no-multiple-template-root': 'off',
'vue/multi-word-component-names': 'off',
'linebreak-style': ['error', 'unix'],
'quotes': ['error', 'single'],
'brace-style': 'error',
'comma-dangle': 'error',
'comma-spacing': 'error',
'keyword-spacing': 'error',
'no-trailing-spaces': 'error',
'no-unneeded-ternary': 'error',
'space-before-function-paren': ['error', 'never'],
'space-infix-ops': ['error', {'int32Hint': false}],
'arrow-spacing': 'error',
'no-var': 'error',
'no-duplicate-imports': 'error',
'space-before-blocks': 'error',
'space-in-parens': ['error', 'never'],
'no-multi-spaces': 'error',
'eqeqeq': 'error',
'indent': ['error', 2],
'semi': ['error', 'never']
}
}
]
13 changes: 13 additions & 0 deletions ui/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Rttys</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
Loading
Loading