diff --git a/.env b/.env index 879c8e3..1a3ecac 100755 --- a/.env +++ b/.env @@ -2,6 +2,8 @@ VITE_TOKEN_KEY=tokenKey VITE_URL_PREFIX=/api +VITE_IMG_CND=https://huanqiuzhongxin.oss-cn-shanghai.aliyuncs.com/new-year/ + # VITE_BASE_APP_ID='wx0fd5e237dba24ff4' # VITE_BASE_APP_ID='wxbad2e8a91c62a734' diff --git a/.husky/commit-msg b/.husky/commit-msg deleted file mode 100755 index 274d2d8..0000000 --- a/.husky/commit-msg +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -# shellcheck source=./_/husky.sh -. "$(dirname "$0")/_/husky.sh" - -PATH="/usr/local/bin:$PATH" - -npx --no-install commitlint --edit "$1" diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100755 index d506cff..0000000 --- a/.husky/pre-commit +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -[ -n "$CI" ] && exit 0 - -# Format and submit code according to lintstagedrc.js configuration -npm run lint:lint-staged diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100755 index 0000000..3cbc28f --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "vue.volar" + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100755 index 0000000..b3a4da0 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,147 @@ +{ + "editor.formatOnSave": true, + "typescript.tsdk": "./node_modules/typescript/lib", + "typescript.preferences.autoImportFileExcludePatterns": ["vue-router"], + "npm.packageManager": "pnpm", + "editor.tabSize": 2, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "files.eol": "\n", + "search.exclude": { + "**/node_modules": true, + "**/*.log": true, + "**/*.log*": true, + "**/bower_components": true, + "**/dist": true, + "**/elehukouben": true, + "**/.git": true, + "**/.gitignore": true, + "**/.svn": true, + "**/.DS_Store": true, + "**/.idea": true, + "**/.vscode": false, + "**/yarn.lock": true, + "**/tmp": true, + "out": true, + "dist": true, + "node_modules": true, + "CHANGELOG.md": true, + "examples": true, + "res": true, + "screenshots": true, + "yarn-error.log": true, + "**/.yarn": true + }, + "files.exclude": { + "**/.cache": true, + "**/.editorconfig": true, + "**/.eslintcache": true, + "**/bower_components": true, + "**/.idea": true, + "**/tmp": true, + "**/.git": true, + "**/.svn": true, + "**/.hg": true, + "**/CVS": true, + "**/.DS_Store": true + }, + "files.watcherExclude": { + "**/.git/objects/**": true, + "**/.git/subtree-cache/**": true, + "**/.vscode/**": true, + "**/node_modules/**": true, + "**/tmp/**": true, + "**/bower_components/**": true, + "**/dist/**": true, + "**/yarn.lock": true + }, + "material-icon-theme.folders.color": "#42a5f5", + "material-icon-theme.folders.theme": "specific", + "material-icon-theme.activeIconPack": "vue_vuex", + "path-intellisense.mappings": { + "@/": "${workspaceRoot}/src" + }, + "[javascriptreact]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[typescript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[typescriptreact]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[html]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[css]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[less]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[scss]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[markdown]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "explicit" + }, + "[vue]": { + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "explicit", + "source.fixAll.stylelint": "explicit" + }, + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "i18n-ally.localesPaths": ["src/locales/lang"], + "i18n-ally.keystyle": "nested", + "i18n-ally.sortKeys": true, + "i18n-ally.namespace": true, + "i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}", + "i18n-ally.enabledParsers": ["ts"], + "i18n-ally.sourceLanguage": "en", + "i18n-ally.displayLanguage": "zh-CN", + "i18n-ally.enabledFrameworks": ["vue", "react"], + "cSpell.words": [ + "antd", + "antv", + "brotli", + "browserslist", + "codemirror", + "commitlint", + "cropperjs", + "echarts", + "ERUDA", + "esnext", + "esno", + "iconify", + "INTLIFY", + "lint-staged", + "lintstagedrc", + "logicflow", + "mkcert", + "mockjs", + "nprogress", + "persistedstate", + "pinia", + "pnpm", + "qrcode", + "sider", + "sortablejs", + "stylelint", + "tailwindcss", + "tdesign", + "tinymce", + "unocss", + "unplugin", + "vben", + "vditor", + "Vite", + "vitejs", + "vueuse", + "windi", + "windicss", + "zxcvbn" + ] +} diff --git a/h5-bywh.conf b/h5-bywh.conf new file mode 100755 index 0000000..ee1db1e --- /dev/null +++ b/h5-bywh.conf @@ -0,0 +1,67 @@ +server { + listen 80; + listen [::]:80; + server_name bywh.flameby.com; + + # listen 443 ssl http2; + # listen [::]:443 ssl http2; + # server_name www.swfc.store swfc.store; + + ssl_certificate /etc/nginx/ssl/swfc.store/swfc.store.pem; + ssl_certificate_key /etc/nginx/ssl/swfc.store/swfc.store.key; + # 配置SSL参数 + ssl_protocols TLSv1.2 TLSv1.3; # 指定支持的SSL/TLS协议版本 + ssl_prefer_server_ciphers on; # 使用服务器端加密套件顺序 + ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH'; # 指定加密套件 + + # 配置其他SSL选项 + ssl_session_timeout 1d; # SSL会话过期时间 + ssl_session_cache shared:SSL:10m; # SSL会话缓存大小 + ssl_session_tickets off; # 禁用SSL会话票据 + + gzip on; + # 定义要压缩的文件类型 + gzip_types text/plain text/css application/javascript application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; + # 定义压缩级别 + gzip_comp_level 6; + # 定义压缩缓冲区大小 + gzip_buffers 16 8k; + # 定义压缩最小文件大小 + gzip_min_length 256; + # 定义压缩的 HTTP 版本 + gzip_http_version 1.1; + # 定义压缩的条件 + gzip_vary on; + # 定义压缩的处理方式 + gzip_proxied any; + # 定义压缩的处理方法 + gzip_static on; + + root /usr/share/nginx/html/h5-off-line/dist; + index index.html index.htm; + location / { + # try_files $uri $uri/ @router; + try_files $uri $uri/ /index.html; + } + + location /api{ + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header REMOTE-HOST $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + client_max_body_size 20M; + proxy_send_timeout 500; + proxy_read_timeout 480; + rewrite ^/api(.*)$ $1 break; + proxy_pass http://localhost:8088; + } + + location /mp/ { + alias /usr/share/nginx/html/mp/; + try_files $uri $uri/ =404; + } + + location ~* \.txt$ { + allow all; + } +} diff --git a/h5-msgg.conf b/h5-msgg.conf new file mode 100755 index 0000000..8aa6be3 --- /dev/null +++ b/h5-msgg.conf @@ -0,0 +1,67 @@ +server { + listen 80; + listen [::]:80; + server_name msgg.flameby.com; + + # listen 443 ssl http2; + # listen [::]:443 ssl http2; + # server_name www.swfc.store swfc.store; + + ssl_certificate /etc/nginx/ssl/swfc.store/swfc.store.pem; + ssl_certificate_key /etc/nginx/ssl/swfc.store/swfc.store.key; + # 配置SSL参数 + ssl_protocols TLSv1.2 TLSv1.3; # 指定支持的SSL/TLS协议版本 + ssl_prefer_server_ciphers on; # 使用服务器端加密套件顺序 + ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH'; # 指定加密套件 + + # 配置其他SSL选项 + ssl_session_timeout 1d; # SSL会话过期时间 + ssl_session_cache shared:SSL:10m; # SSL会话缓存大小 + ssl_session_tickets off; # 禁用SSL会话票据 + + gzip on; + # 定义要压缩的文件类型 + gzip_types text/plain text/css application/javascript application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; + # 定义压缩级别 + gzip_comp_level 6; + # 定义压缩缓冲区大小 + gzip_buffers 16 8k; + # 定义压缩最小文件大小 + gzip_min_length 256; + # 定义压缩的 HTTP 版本 + gzip_http_version 1.1; + # 定义压缩的条件 + gzip_vary on; + # 定义压缩的处理方式 + gzip_proxied any; + # 定义压缩的处理方法 + gzip_static on; + + root /usr/share/nginx/html/h5-off-line/dist; + index index.html index.htm; + location / { + # try_files $uri $uri/ @router; + try_files $uri $uri/ /index.html; + } + + location /api{ + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header REMOTE-HOST $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + client_max_body_size 20M; + proxy_send_timeout 500; + proxy_read_timeout 480; + rewrite ^/api(.*)$ $1 break; + proxy_pass http://localhost:8088; + } + + location /mp/ { + alias /usr/share/nginx/html/mp/; + try_files $uri $uri/ =404; + } + + location ~* \.txt$ { + allow all; + } +} diff --git a/h5.conf b/h5.conf index 87754a4..2664301 100755 --- a/h5.conf +++ b/h5.conf @@ -1,21 +1,24 @@ -# server{ -# listen 80; -# listen [::]:80; -# server_name www.swfc.store swfc.store; -# # 重定向到 HTTPS -# # return 301 https://swfc.store$request_uri; -# # return 301 https://$host$request_uri; - -# # 配置HTTP到HTTPS的重定向(可选) -# # if ($scheme != "https") { -# # return 301 https://swfc.store; -# # } -# } - -server { +server{ listen 80; listen [::]:80; server_name www.swfc.store swfc.store; + # 重定向到 HTTPS + return 301 https://swfc.flameby.com$request_uri; + # return 301 https://$host$request_uri; + + # 配置HTTP到HTTPS的重定向(可选) + # if ($scheme != "https") { + # return 301 https://swfc.store; + # } + # location / { + # rewrite ^ https://swfc.flameby.com$request_uri permanent; + # } +} + +server { + # listen 80; + # listen [::]:80; + # server_name www.swfc.store swfc.store; listen 443 ssl http2; listen [::]:443 ssl http2; diff --git a/public/MP_verify_q7xJZRWSt4ZVvZYx.txt b/public/MP_verify_q7xJZRWSt4ZVvZYx.txt new file mode 100644 index 0000000..df04092 --- /dev/null +++ b/public/MP_verify_q7xJZRWSt4ZVvZYx.txt @@ -0,0 +1 @@ +q7xJZRWSt4ZVvZYx \ No newline at end of file diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..6916c30 Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/tencent8129526667560153823.txt b/public/tencent8129526667560153823.txt new file mode 100644 index 0000000..e7b8384 --- /dev/null +++ b/public/tencent8129526667560153823.txt @@ -0,0 +1 @@ +4865349650456970681 \ No newline at end of file diff --git a/src/assets/imgs/favicon.ico b/src/assets/imgs/favicon.ico new file mode 100644 index 0000000..6916c30 Binary files /dev/null and b/src/assets/imgs/favicon.ico differ diff --git a/src/assets/imgs/logo.png b/src/assets/imgs/logo.png new file mode 100644 index 0000000..ba89ebc Binary files /dev/null and b/src/assets/imgs/logo.png differ diff --git a/src/views/home/index.vue b/src/views/home/index.vue index ed0b20d..ab8362f 100755 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -1,7 +1,8 @@