Skip to content

Commit

Permalink
chore(eden): 先拉坨稀的
Browse files Browse the repository at this point in the history
  • Loading branch information
mark9804 committed Dec 31, 2023
1 parent 088458d commit 8e55c0c
Show file tree
Hide file tree
Showing 22 changed files with 1,458 additions and 156 deletions.
617 changes: 474 additions & 143 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions lib/eden-design/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"env": {
"browser": true,
"es2021": true
},
"root": true,
"parser": "vue-eslint-parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:vue/vue3-essential",
"@vue/eslint-config-typescript",
"prettier"
],
"plugins": ["vue", "import", "sort-exports", "@typescript-eslint"],
"rules": {
"vue/no-multiple-template-root": "off",
"vue/multi-word-component-names": "off",
"indent": ["error", 2, { "SwitchCase": 1 }],
"max-len": ["error", { "code": 120 }],
"linebreak-style": ["error", "unix"],
"semi": ["warn", "always"],
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}
],
"sort-exports/sort-exports": ["error", { "sortDir": "asc" }],
"sort-imports": [
"error",
{
"ignoreCase": false,
"ignoreDeclarationSort": true,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["all", "single", "multiple", "none"]
}
]
}
}
83 changes: 83 additions & 0 deletions lib/eden-design/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

# OS X temporary files
.DS_Store

# IntelliJ IDEA project files; if you want to commit IntelliJ settings, this recipe may be helpful:
# https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
.idea/
*.iml

# Rush temporary files
common/deploy/
common/temp/
common/autoinstallers/*/.npmrc
**/.rush/temp/

# Heft temporary files
.heft
pnpm-lock.yaml
dist
**/config/json/
# Editor directories and files
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
6 changes: 6 additions & 0 deletions lib/eden-design/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"singleQuote": false,
"arrowParens": "avoid",
"trailingComma": "es5",
"useTabs": false
}
13 changes: 13 additions & 0 deletions lib/eden-design/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>Eden Components</title>
</head>
<body>
<div id="app" class="flex w-full gap-[32px]"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
34 changes: 22 additions & 12 deletions lib/eden-design/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,36 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"build": "pnpm docs:build",
"build": "pnpm docs:build && vite build",
"docs:preview": "vitepress preview docs"
},
"dependencies": {
"vitepress": "~1.0.0-rc.24",
"@arco-design/web-vue": "~2.52.1",
"@arco-design/web-vue": "~2.54.1",
"@vitejs/plugin-vue": "^4.2.3",
"@vueuse/core": "^10.2.1",
"autoprefixer": "~10.4.16",
"postcss": "~8.4.31",
"postcss-plugin-px2rem": "^0.8.1",
"postcss-preset-env": "^9.2.0",
"radix-vue": "~1.2.5",
"tailwindcss": "~3.3.5",
"typescript": "^5.1.6",
"unplugin-auto-import": "^0.16.7",
"unplugin-vue-components": "^0.25.2",
"typescript": "^5.1.6",
"tailwindcss": "~3.3.5",
"postcss": "~8.4.31",
"autoprefixer": "~10.4.16",
"vite": ">=4.5.1",
"vitepress": "~1.0.0-rc.24",
"vue": "^3.3.7",
"vue-router": "^4.2.2",
"@vitejs/plugin-legacy": "^4.0.5",
"@vitejs/plugin-vue-jsx": "~3.1.0",
"color-string": "~1.9.1",
"@types/color-string": "~1.5.4",
"postcss-preset-env": "^9.2.0",
"postcss-plugin-px2rem": "^0.8.1",
"@vueuse/core": "^10.2.1",
"radix-vue": "~1.2.5"
"@types/color-string": "~1.5.5",
"@vue/eslint-config-typescript": "^11.0.3",
"prettier": "^2.8.8",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-sort-exports": "^0.8.0"
}
}
9 changes: 9 additions & 0 deletions lib/eden-design/packages/eden-ui/components/Menu/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Menu from "./src/Menu.vue";
import type { App } from "vue";
Menu.name = "e-menu";

Menu.install = (app: App) => {
app.component(Menu.name, Menu);
};

export { Menu };
7 changes: 7 additions & 0 deletions lib/eden-design/packages/eden-ui/components/Menu/src/Menu.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<script setup lang="ts"></script>

<template>
<div>Menu</div>
</template>

<style scoped lang="scss"></style>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<script setup lang="ts">
import {
CollapsibleContent,
CollapsibleRoot,
CollapsibleTrigger,
} from "radix-vue";
</script>

<template>
<CollapsibleRoot>
<CollapsibleTrigger>111</CollapsibleTrigger>
</CollapsibleRoot>
</template>

<style scoped lang="scss"></style>
12 changes: 12 additions & 0 deletions lib/eden-design/packages/eden-ui/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import type { App } from "vue";
import { Menu } from "./components/Menu/index";

const components = [Menu];

const install = (app: App) => {
components.forEach(item => {
app.component(item.name, item);
});
};

export default install;
Loading

0 comments on commit 8e55c0c

Please sign in to comment.