Przeglądaj źródła

'add:初始项目'

miaofuhao 1 rok temu
rodzic
commit
c61aa86ffc

+ 0 - 0
text.txt


+ 23 - 0
web-site-music/.gitignore

@@ -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?

+ 24 - 0
web-site-music/README.md

@@ -0,0 +1,24 @@
1
+# web-site-music
2
+
3
+## Project setup
4
+```
5
+npm install
6
+```
7
+
8
+### Compiles and hot-reloads for development
9
+```
10
+npm run serve
11
+```
12
+
13
+### Compiles and minifies for production
14
+```
15
+npm run build
16
+```
17
+
18
+### Lints and fixes files
19
+```
20
+npm run lint
21
+```
22
+
23
+### Customize configuration
24
+See [Configuration Reference](https://cli.vuejs.org/config/).

+ 5 - 0
web-site-music/babel.config.js

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

+ 19 - 0
web-site-music/jsconfig.json

@@ -0,0 +1,19 @@
1
+{
2
+  "compilerOptions": {
3
+    "target": "es5",
4
+    "module": "esnext",
5
+    "baseUrl": "./",
6
+    "moduleResolution": "node",
7
+    "paths": {
8
+      "@/*": [
9
+        "src/*"
10
+      ]
11
+    },
12
+    "lib": [
13
+      "esnext",
14
+      "dom",
15
+      "dom.iterable",
16
+      "scripthost"
17
+    ]
18
+  }
19
+}

Plik diff jest za duży
+ 20363 - 0
web-site-music/package-lock.json


+ 45 - 0
web-site-music/package.json

@@ -0,0 +1,45 @@
1
+{
2
+  "name": "web-site-music",
3
+  "version": "0.1.0",
4
+  "private": true,
5
+  "scripts": {
6
+    "serve": "vue-cli-service serve",
7
+    "build": "vue-cli-service build",
8
+    "lint": "vue-cli-service lint"
9
+  },
10
+  "dependencies": {
11
+    "axios": "^1.6.8",
12
+    "core-js": "^3.8.3",
13
+    "element-plus": "^2.6.2",
14
+    "vue": "^3.2.13"
15
+  },
16
+  "devDependencies": {
17
+    "@babel/core": "^7.12.16",
18
+    "@babel/eslint-parser": "^7.12.16",
19
+    "@vue/cli-plugin-babel": "~5.0.0",
20
+    "@vue/cli-plugin-eslint": "~5.0.0",
21
+    "@vue/cli-service": "~5.0.0",
22
+    "eslint": "^7.32.0",
23
+    "eslint-plugin-vue": "^8.0.3"
24
+  },
25
+  "eslintConfig": {
26
+    "root": true,
27
+    "env": {
28
+      "node": true
29
+    },
30
+    "extends": [
31
+      "plugin:vue/vue3-essential",
32
+      "eslint:recommended"
33
+    ],
34
+    "parserOptions": {
35
+      "parser": "@babel/eslint-parser"
36
+    },
37
+    "rules": {}
38
+  },
39
+  "browserslist": [
40
+    "> 1%",
41
+    "last 2 versions",
42
+    "not dead",
43
+    "not ie 11"
44
+  ]
45
+}

BIN
web-site-music/public/favicon.ico


+ 17 - 0
web-site-music/public/index.html

@@ -0,0 +1,17 @@
1
+<!DOCTYPE html>
2
+<html lang="">
3
+  <head>
4
+    <meta charset="utf-8">
5
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+    <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
+    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
8
+    <title><%= htmlWebpackPlugin.options.title %></title>
9
+  </head>
10
+  <body>
11
+    <noscript>
12
+      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13
+    </noscript>
14
+    <div id="app"></div>
15
+    <!-- built files will be auto injected -->
16
+  </body>
17
+</html>

+ 25 - 0
web-site-music/src/App.vue

@@ -0,0 +1,25 @@
1
+<template>
2
+  <HelloWorld msg="Welcome to Your Vue.js App"/>
3
+</template>
4
+
5
+<script>
6
+import HelloWorld from './components/HelloWorld.vue'
7
+
8
+export default {
9
+  name: 'App',
10
+  components: {
11
+    HelloWorld
12
+  }
13
+}
14
+</script>
15
+
16
+<style>
17
+#app {
18
+  font-family: Avenir, Helvetica, Arial, sans-serif;
19
+  -webkit-font-smoothing: antialiased;
20
+  -moz-osx-font-smoothing: grayscale;
21
+  text-align: center;
22
+  color: #2c3e50;
23
+  margin-top: 60px;
24
+}
25
+</style>

BIN
web-site-music/src/assets/logo.png


+ 13 - 0
web-site-music/src/components/HelloWorld.vue

@@ -0,0 +1,13 @@
1
+<template>
2
+  <el-button type="primary" @click="onClick">点击了{{time}}次</el-button>
3
+</template>
4
+
5
+<script setup>
6
+  import { ref } from 'vue'
7
+  const time = ref(0)
8
+  const onClick = () => {
9
+    time.value ++
10
+  }
11
+</script>
12
+  
13
+ 

+ 13 - 0
web-site-music/src/main.js

@@ -0,0 +1,13 @@
1
+import { createApp } from 'vue'
2
+import App from './App.vue'
3
+import ElementPlus from 'element-plus'
4
+import 'element-plus/dist/index.css'
5
+import zhCn from 'element-plus/es/locale/lang/zh-cn'
6
+
7
+const app = createApp(App)
8
+app.use(ElementPlus, {
9
+    zIndex: 3000,
10
+    locale: zhCn
11
+})
12
+
13
+app.mount('#app')

+ 4 - 0
web-site-music/vue.config.js

@@ -0,0 +1,4 @@
1
+const { defineConfig } = require('@vue/cli-service')
2
+module.exports = defineConfig({
3
+  transpileDependencies: true
4
+})