Compare commits
No commits in common. "13ae12558ce5daa930dd619dd33fa4801fe81353" and "09ebceb7d98d5c14a367495c287939d143702a4a" have entirely different histories.
13ae12558c
...
09ebceb7d9
|
@ -1,6 +1,6 @@
|
||||||
// @see: http://eslint.cn
|
// @see: http://eslint.cn
|
||||||
|
|
||||||
export default {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
env: {
|
env: {
|
||||||
browser: true,
|
browser: true,
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
"i18n-ally.localesPaths": [
|
|
||||||
"src/languages"
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -1,23 +0,0 @@
|
||||||
# 使用官方的 Nginx 镜像作为基础镜像
|
|
||||||
FROM nginx
|
|
||||||
|
|
||||||
# 删除默认的 Nginx 配置文件
|
|
||||||
RUN rm /etc/nginx/conf.d/default.conf
|
|
||||||
|
|
||||||
# 将自定义的 Nginx 配置文件复制到容器中
|
|
||||||
COPY nginx.conf /etc/nginx/conf.d/
|
|
||||||
|
|
||||||
# 创建一个目录来存放前端项目文件
|
|
||||||
WORKDIR /usr/share/nginx/html
|
|
||||||
|
|
||||||
# 将前端项目打包文件复制到 Nginx 的默认静态文件目录
|
|
||||||
COPY dist/ /usr/share/nginx/html
|
|
||||||
# 复制到nginx目录下
|
|
||||||
COPY dist/ /etc/nginx/html
|
|
||||||
|
|
||||||
# 暴露 Nginx 的默认端口
|
|
||||||
EXPOSE 80
|
|
||||||
|
|
||||||
# 自动启动 Nginx
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
listen [::]:80;
|
|
||||||
server_name localhost;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
root /etc/nginx/html;
|
|
||||||
index index.html index.htm;
|
|
||||||
try_files $uri /index.html;
|
|
||||||
}
|
|
||||||
|
|
||||||
# 后端跨域请求
|
|
||||||
location ~/api/ {
|
|
||||||
proxy_pass http://192.168.3.98:1001;
|
|
||||||
}
|
|
||||||
|
|
||||||
# mock 跨域
|
|
||||||
location ~/mock/ {
|
|
||||||
proxy_pass http://192.168.3.98:1001;
|
|
||||||
}
|
|
||||||
|
|
||||||
error_page 404 404.html;
|
|
||||||
|
|
||||||
location = /50x.html {
|
|
||||||
root html;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
import { defineConfig } from "@unocss/vite";
|
||||||
import presetUno from "@unocss/preset-uno";
|
import presetUno from "@unocss/preset-uno";
|
||||||
import transformerDirectives from "@unocss/transformer-directives";
|
import transformerDirectives from "@unocss/transformer-directives";
|
||||||
import { defineConfig } from "@unocss/vite";
|
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
content: {
|
content: {
|
||||||
|
|
Loading…
Reference in New Issue