diff --git a/.env b/.env new file mode 100644 index 0000000..fc35bad --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +# 网易云音乐API地址 +VITE_NETEASECLOUD_API = http://localhost:3300 + \ No newline at end of file diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..646aab0 --- /dev/null +++ b/.env.development @@ -0,0 +1,3 @@ +# 网易云音乐API地址 +VITE_NETEASECLOUD_API = http://localhost:3300 + diff --git a/package.json b/package.json index 8031ca6..9e7266b 100644 --- a/package.json +++ b/package.json @@ -4,11 +4,12 @@ "author": "zlyum", "main": "electron/electron.js", "scripts": { - "dev": "yarn svr & vite --port 3301", + "dev": "vite --port 3301", "build": "vite build", "serve": "vite preview", "vite-tauri": "vite-tauri", "svr": "node ../NMApi/app.js", + "svr:dev": "yarn svr & yarn dev", "electron": "wait-on tcp:3301 && cross-env IS_DEV=true electron .", "electron:pack": "electron-builder --dir", "electron:dev": "concurrently -k \"cross-env BROWSER=none yarn dev\" \"yarn electron\"", @@ -45,6 +46,7 @@ "@vue/cli-service": "~4.5.0", "@vue/compiler-sfc": "^3.0.0", "@vue/eslint-config-prettier": "^6.0.0", + "autoprefixer": "^10.4.2", "babel-eslint": "^10.1.0", "concurrently": "^6.3.0", "cross-env": "^7.0.3", @@ -56,9 +58,11 @@ "eslint-plugin-vue": "^7.0.0", "less": "^3.0.4", "less-loader": "^5.0.0", - "naive-ui": "^2.19.3", + "naive-ui": "^2.24.5", + "postcss": "^8.4.5", "prettier": "^2.2.1", "svg-sprite-loader": "^6.0.11", + "tailwindcss": "^3.0.16", "vite": "^2.6.4", "vite-plugin-tauri": "^0.1.3", "vite-svg-loader": "^2.2.0", diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000..33ad091 --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/src/App.vue b/src/App.vue index 209c7e0..fc63912 100644 --- a/src/App.vue +++ b/src/App.vue @@ -246,6 +246,13 @@ body { max-width: 800px; } } + +// button, [type='button'], [type='reset'], [type='submit']{ +// background-color: inherit; +// } +button.n-button{ + background-color: var(--n-color); +}