Skip to content

Commit

Permalink
feat: add frontend specifications (openimsdk#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu116 committed Jun 27, 2023
1 parent ea1c9f5 commit ca3c28d
Show file tree
Hide file tree
Showing 12 changed files with 2,550 additions and 1,218 deletions.
29 changes: 29 additions & 0 deletions web/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:vue/vue3-essential',
],
overrides: [
{
env: {
node: true,
},
files: ['.eslintrc.{js,cjs}'],
parserOptions: {
sourceType: 'script',
},
},
],
parserOptions: {
ecmaVersion: 'latest',
parser: '@typescript-eslint/parser',
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'vue'],
rules: {},
};
14 changes: 14 additions & 0 deletions web/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/dist/*
.local
.output.js
/node_modules/**

**/*.svg
**/*.sh
**/*.md
**/*.yml
*.html

/public/*
/build
/coverage
10 changes: 10 additions & 0 deletions web/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
printWidth: 80, // 每行代码长度(默认80)
tabWidth: 4, // 每个tab相当于多少个空格(默认2)
useTabs: false, // 是否使用tab进行缩进(默认false)
singleQuote: true, // 使用单引号(默认false)
semi: true, // 声明结尾使用分号(默认true)
trailingComma: 'all', // 多行使用拖尾逗号(默认none)
bracketSpacing: true, // 对象字面量的大括号间使用空格(默认true)
arrowParens: 'avoid', // 只有一个参数的箭头函数的参数是否带圆括号(默认avoid)
};
22 changes: 11 additions & 11 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
-->

<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>OpenKF</title>
</head>
<body>
<div id="app"></div>
<script src="./wasm_exec.js"></script>
<script type="module" src="/src/main.js"></script>
</body>
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OpenKF</title>
</head>
<body>
<div id="app"></div>
<script src="./wasm_exec.js"></script>
<script type="module" src="/src/main.js"></script>
</body>
</html>
Loading

0 comments on commit ca3c28d

Please sign in to comment.